package com.beamfield.dao.mixstation;

import com.beamfield.model.MixCar;
import com.beamfield.model.MixCarMaintain;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface MixCarMaintainMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MixCarMaintain record);

    int insertSelective(MixCarMaintain record);

    MixCarMaintain selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MixCarMaintain record);

    int updateByPrimaryKey(MixCarMaintain record);

    List<MixCarMaintain> getCarMaintainList(@Param("offset") Integer offset, @Param("limit") Integer limit, @Param("car_no") String carNo,
                            @Param("maintain_type") String maintainType, @Param("start_date") String startDate, @Param("beam_id") Long beamId);

    int getCount(@Param("car_no") String carNo, @Param("maintain_type") String maintainType, @Param("start_date") String startDate, @Param("beam_id") Long beamId);
}